home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1853 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  743 b   |  33 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 1 && _root.range == true)
  5.       {
  6.          _root.fade.gotoAndPlay(1);
  7.          stopAllSounds();
  8.          if(_root.even29 == 0)
  9.          {
  10.             _root.gotoAndStop(56);
  11.          }
  12.          else
  13.          {
  14.             _root.gotoAndStop(55);
  15.          }
  16.       }
  17.       if(_root.micon._currentframe == 2)
  18.       {
  19.          if(_root.even29 == 0)
  20.          {
  21.             _root.next_dis1 = 2;
  22.             _root.next_txt1 = "A locker with a combination lock.";
  23.          }
  24.          else
  25.          {
  26.             _root.fade.gotoAndPlay(1);
  27.             stopAllSounds();
  28.             _root.gotoAndStop(55);
  29.          }
  30.       }
  31.    }
  32. }
  33.